﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace QualitySupervision.Models
{
    public class User
    {
        /// <summary>
        /// ID
        /// </summary>
        //[Key] //主键 
        //[DatabaseGenerated(DatabaseGeneratedOption.Identity)]  //设置自增
        public int ID { get; set; }
        public int rid { get; set; }
        public string mobile { get; set; }
        public string email { get; set; }
        public string username { get; set; }
        public string password { get; set; }
        public string deptmentname { get; set; }
        public int dept { get; set; }
        public string position { get; set; }
        public bool? mg_state { get; set; } = true;
        public string role_name { get; set; }
        public string departmentId { get; set; }
        public string name { get; set; }
    }
}
